// Problem 7: 10001st prime
// By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
// What is the 10001st prime number?

package main

import (
	"fmt"
	"projecteuler/euler"
)

func p007() int {
	to, increment := 100000, 10000
	for len(euler.PrimeList) < 10001 {
		to += increment
		euler.FillPrime(to)
	}
	fmt.Println("Problem 007:", euler.PrimeList[10000])
	return euler.PrimeList[10000]
}
